package com.yxh.lib_base.config


interface Config {
    companion object {
        private const val DEV: Boolean = true

        //一个扩展 开关属性是建立在开发环境下 进行
        private fun Boolean.DevEnable() = DEV && this

        private const val APPLICATION_NAME = "unifiedApp"

        //当前token
        var TOKEN = ""

    }


    /**log日志配置*/
    interface Log {
        companion object {
            @JvmStatic
            val LOG_TAG = "【LOG_UNIFIED】"
            @JvmStatic
            val LOG_SHOW = true.DevEnable()     //启用 log 总开关
            @JvmStatic
            fun Boolean.LogEnable() = LOG_SHOW && this
            @JvmStatic
            val LOG_THREAD_INFO = false.LogEnable()          //log 显示线程信息

        }
    }
}





